package com.mzkj.wanjulaile.mobile.api.modules.weChat.entity;


import com.mzkj.wanjulaile.mobile.api.common.config.Global;

/**
 * Copyright © 2016 上海美挚网络. All rights reserved.
 *
 * @Projec: meilein
 * @Package:in.meile.print.modules.mobile.constant
 * @Description:${todo}
 * @author:bing
 * @date:16/5/6 上午11:39
 * @version:V1.0
 */
public class WxPayConfig {

	/**
	 * 微信支付商户号[切勿修改]
	 */
	public static final String MCH_ID = Global.getConfig("wx.mchId");

	/**
	 * 微信支付API秘钥[切勿修改]
	 */
	public static final String KEY = Global.getConfig("wx.key");

	/**
	 * 微信api认证证书
	 */
	public static final String CERT_PATH = Global.getConfig("wx.certPath");

	/**
	 * 微信统一下单url
	 */
	public static final String UNIFIED_ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";

	/**
	 * 微信申请退款url
	 */
	public static final String REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";

	/**
	 * 微信查询退款url
	 */
	public static final String REFUND_QUERY_URL = "https://api.mch.weixin.qq.com/pay/refundquery";

	/**
	 *微信支付通知url[切勿修改]
	 */
	public static final String NOTIFY_URL = "http://"+ Global.getConfig("wx.domainName") +"/m/wechat/notify_url";
	/**
	 *微信支付购买会员通知url[切勿修改]
	 */
	public static final String VIP_NOTIFY_URL = "http://"+ Global.getConfig("wx.domainName") +"/m/wechat/vip_notify_url";

	/**
	 *微信交易类型:公众号支付
	 */
	public static final String TRADE_TYPE_JSAPI = "JSAPI";

	/**
	 *微信交易类型:原生扫码支付
	 */
	public static final String TRADE_TYPE_NATIVE = "NATIVE";

	/**
	 * 微信甲乙类型:APP支付
	 */
	public static final String TRADE_TYPE_APP = "APP";

	/**
	 *微信支付途径来源: 公众号
	 */
	public static final String RESOURCE_PAY_WEB = "WEB";

	/**
	 * 微信支付途径来源:APP_api支付
	 */
	public static final String RESOURCE_PAY_API = "APP_API";

	/**
	 * 微信公众平台认证证书
	 */
	public static final String  WEB_CERT_PATH = Global.getConfig("web.wx.certPath");

	/**
	 * 微信公众平台支付商户号[切勿修改]
	 */
	public static final String WEB_MCH_ID = Global.getConfig("web.wx.mchId");

	/**
	 * 微信公众平台支付API秘钥[切勿修改]
	 */
	public static final String WEB_KEY = Global.getConfig("web.wx.key");

}
